package com.xyh;

import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @RequestMapping(value = "/receive/hello/{name}",method = RequestMethod.GET)
    public String receive(@PathVariable("name") String name){
        return "hello"+name;
    }
}
